package com.example.exception;

import com.example.spzx.model.vo.common.ResultCodeEnum;
import lombok.Data;

@Data
public class OmegaException extends RuntimeException {
    private Integer code;
    private String message;
    private ResultCodeEnum resultCodeEnum;
    public OmegaException(ResultCodeEnum resultCodeEnum){
        System.out.println("123");
        this.resultCodeEnum=resultCodeEnum;
        this.code=resultCodeEnum.getCode();
        this.message=resultCodeEnum.getMessage();
    }
//    public OmegaException(Integer code,String message){
//        this.code=code;
//        this.message=message;
//    }
}
